﻿using MengLin.OOP.DesignPattern.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.Interface
{
    public interface IUserService
    {
       /// <summary>
       /// 创建用户
       /// </summary>
       /// <param name="user"></param>
       void CreateUser(User user);
    
        /// <summary>
        /// 根据用户id查询用户
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
       User GetUser(int id);
    }
}
